package com.sanceng.contrlloer;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhangwei
 * @version 1.0
 * @date 2023/9/30 22:55
 */
@RestController
public class NacosContrller {

    @Value("${my.ab}")
    private String  value;


    @RequestMapping("/test")
    public String  test() {
        return "success" + value;
    }


    @RequestMapping("/mytest")
    public String  mytest() {
        return "success" +  value;
    }


}
